import service from '@/utils/request'
export const yiyuGetCategory = (params) => {
  return service({
    url: '/yiyu/yiyuGetCategory',
    method: 'get',
    params
  })
}

export const yiyuGetidCategory = (params) => {
  return service({
    url:'/yiyu/yiyuGetidCategory',
    method:'get',
    params
  })
}

export const yiyuDeleteCategory = (params) => {
  return service({
    url:'/yiyu/yiyuDeleteCategory',
    method:'delete',
    params
  })
}

export const yiyuCreateCategory = (data) => {
  return service({
    url:'/yiyu/yiyuCreateCategory',
    method:'post',
    data
  })
}

export const yiyuUpdateCategory = (data) => {
  return service({
    url:'/yiyu/yiyuUpdateCategory',
    method:'put',
    data
  })
}
